package com.jlcindia.spring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Lab29C {
public static void main(String[] args) {
	AnnotationConfigApplicationContext ctx=new AnnotationConfigApplicationContext();
	ctx.scan("com.jlcindia.spring");
	System.out.println("Now Spring Container is Ready...");
	
	Hello hello=(Hello)ctx.getBean(Hello.class);
	hello.show();
	System.out.println("------------------------------------");
	Hai hai=(Hai)ctx.getBean(Hai.class);
	hai.show();
}
}